package org.example.springioc.Controller;

import org.example.springioc.Configuration.listConfig;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class ListController {

    @Autowired
    private listConfig list;

    @RequestMapping("/getList")
    public String getList(){
        return list.toString();
    }
}
